package io.renren.modules.app.service;
import java.util.List;
import java.util.Map;

import io.renren.common.utils.PageUtils;
import io.renren.modules.app.entity.TZnmhAppMenu;
public interface TZnmhAppMenuService{
	/**
	 * 获得TZnmhAppMenu数据的总行数
	 * @return
	 */
    long getTZnmhAppMenuRowCount();
	/**
	 * 分页查询TZnmhAppMenu数据集合
	 * @param params
	 * @return
	 */
	PageUtils selectTZnmhAppMenuByPage(Map<String, Object> params);
	/**
	 * 获得TZnmhAppMenu数据集合
	 * @return
	 */
    List<TZnmhAppMenu> selectTZnmhAppMenu();
	/**
	 * 获得一个TZnmhAppMenu对象,以参数TZnmhAppMenu对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    TZnmhAppMenu selectTZnmhAppMenuByObj(TZnmhAppMenu obj);
	/**
	 * 通过TZnmhAppMenu的id获得TZnmhAppMenu对象
	 * @param id
	 * @return
	 */
    TZnmhAppMenu selectTZnmhAppMenuById(String id);
	/**
	 * 插入TZnmhAppMenu到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTZnmhAppMenu(TZnmhAppMenu value);
	/**
	 * 插入TZnmhAppMenu中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyTZnmhAppMenu(TZnmhAppMenu value);
	/**
	 * 批量插入TZnmhAppMenu到数据库
	 * @param value
	 * @return
	 */
    int insertTZnmhAppMenuByBatch(List<TZnmhAppMenu> value);
	/**
	 * 通过TZnmhAppMenu的id删除TZnmhAppMenu
	 * @param id
	 * @return
	 */
    int deleteTZnmhAppMenuById(String id);
	/**
	 * 通过TZnmhAppMenu的id更新TZnmhAppMenu中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateTZnmhAppMenuById(TZnmhAppMenu enti);
	/**
	 * 通过TZnmhAppMenu的id更新TZnmhAppMenu中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyTZnmhAppMenuById(TZnmhAppMenu enti);
	/**
	 * 通过TZnmhAppMenu的id逻辑删除菜单
	 * @param menuIds
	 * @return
	 */
	int deleteBatch(String[] menuIds);

}